﻿<%@ Page Language="C#" MasterPageFile="~/Shared/Masters/Form.master" AutoEventWireup="true" CodeFile="ModTargetAdd.aspx.cs" 
Inherits="Modules_Personal_ModTargetAdd" Title="编辑指标" %>

<asp:Content ID="Content2" ContentPlaceHolderID="idFormMain" Runat="Server">
    <h2>
       <asp:Label ID="lblTitle" runat="server" Text="指标信息" ></asp:Label>
    </h2>
<div>
    <table cellpadding='2' cellspacing='1' class='ow_fim_mg' width='100%'>
                <tr>
                    <td class='fi_l'>
                        <asp:Label ID="Label2" runat="server" Text="从现有:"></asp:Label><font color='red'>*</font>
                    </td>
                    <td class='fi_r' colspan="3">
                        <asp:DropDownList ID="ddlCurrent" runat="server" Width="650px" AutoPostBack="true" OnSelectedIndexChanged="ddlCurrent_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class='fi_l'>
                        <asp:Label ID="lbCode" runat="server" Text="代码:"></asp:Label><font color='red'>*</font>
                    </td>
                    <td class='fi_r'>
                        <asp:TextBox ID='txtCode' runat='server' Width='180px' MaxLength="50"
                            ></asp:TextBox>
                            <asp:RequiredFieldValidator ID="reqCode" runat="server" ErrorMessage="请输入代码" ValidationGroup="oss"
                    ControlToValidate="txtCode">*</asp:RequiredFieldValidator>
                    </td>
                    <td class='fi_l'>
                        <asp:Label ID="lbName" runat="server" Text="名称:"></asp:Label><font color='red'>*</font>
                    </td>
                    <td class='fi_r'>
                        <asp:TextBox ID="txtName" runat="server" Width='180px' MaxLength='100'></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvName" runat="server" ErrorMessage="请输入名称" ValidationGroup="oss"
                    ControlToValidate="txtName">*</asp:RequiredFieldValidator>
                        </td>
                </tr>
                <tr>
                   <td class='fi_l'>
                        <asp:Label ID="lbTargetType" runat="server" Text="类型:"></asp:Label><font color='red'>*</font>
                    </td>
                    <td class='fi_r'>
                        <asp:DropDownList ID="ddlTargetType" runat="server" Width="185px" AutoPostBack="true" OnSelectedIndexChanged="ddlTargetType_SelectedIndexChanged">
                        </asp:DropDownList></td>  
                    <td class='fi_l'>
                        <asp:Label ID="lbScore" runat="server" Text="分值:"></asp:Label><font color='red'>*</font>
                    </td>
                    <td class='fi_r'>
                        <asp:TextBox ID="txtScore" runat="server" Width='180px' MaxLength='100'></asp:TextBox>
                        <asp:CompareValidator ID="cvScore" runat="server" ControlToValidate="txtScore" ErrorMessage="分值不能为0"
                           Operator="NotEqual" Type="Double" ValueToCompare="0" ValidationGroup="oss"></asp:CompareValidator>
                        </td> 
                </tr>
                <tr>
                    <td class='fi_l'>
                        <asp:Label ID="Label1" runat="server" Text="备注:"></asp:Label>
                    </td>
                    <td class='fi_r' colspan="3">
                        <asp:TextBox ID="txtRemark" runat="server" Width='650px' MaxLength='100'></asp:TextBox>
                        </td> 
                </tr>
            </table>
</div>

<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
        ShowSummary="False" ValidationGroup="oss" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="idFormButton" Runat="Server">
  <asp:Button ID="btnSave" runat="server" Text="保存"  ValidationGroup="oss"
        OnClick="btnSave_Click" />
    <asp:Button ID="CloseButton" runat="server" Text="关闭" 
        OnClientClick="return closeForm();" />   
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="idScript" runat="Server">

    <script type="text/javascript">
        function closeForm() {
            window.returnValue="false";
            window.opener=null;
            window.close();
            return false;
        } 
       
           
    </script>

</asp:Content>



